package com.chis.mycat;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MycatTest {

    public static void main(String[] args) throws Exception {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"spring.xml"});
        context.start();
        MycatService mycatService = (MycatService) context.getBean("mycatService");
        Object obj = mycatService.testquery();
        System.out.println(obj);
        long l1 = System.currentTimeMillis();
        obj = mycatService.testquery();
        System.out.println(obj);
        System.out.println(System.currentTimeMillis()-l1);

    }


}
